<?php
	//include managers
	include("ApplianceManager.php");
	include("BirdEyeManager.php");
	include("CheckoutManager.php");
	include("EditApplianceManager.php");
	include("EditLogManager.php");
	include("EditPaymentManager.php");
	include("EditReservationManager.php");
	include("EditResidentManager.php");
	include("EditViolationManager.php");
	include("KeyDepositManager.php");
	include("LogManager.php");
	include("PaymentManager.php");
	include("ResidentManager.php");
	include("SearchManager.php");
	include("UnpaidManager.php");
	include("UpdateManager.php");
	include("ViolationManager.php");

	
	class TestCase {
		function verify($trueValue, $actualValue) {
			if($trueValue == $actualValue) {
				echo "Test Successful!";
			} else {
				echo "Test Failed!";
			}
			echo "<br/>";
		}
	}
		
	//TEST CASES FOR APPLIANCE MANAGER
	$applianceTest = new TestCase();
	$appliance = new ApplianceManager();
	
	$actualValue = $appliance->validate("a",null,null,null,null,null,null);
	$applianceTest->verify(false,$actualValue);
	
	$actualValue = $appliance->validate("a","","","","","","");
	$applianceTest->verify(false,$actualValue);
	
	$actualValue = $appliance->validate(1,"","","","","","");
	$applianceTest->verify(false,$actualValue);
	
	$actualValue = $appliance->validate("a",1,1,1,1,1,1);
	$applianceTest->verify(false,$actualValue);

	//TEST CASES FOR BIRDEYE MANAGER
	$birdEyeTest = new TestCase();
	$birdEye = new BirdEyeManager();
	
	$actualValue = $birdEye->validate(1);
	$birdEyeTest->verify(false,$actualValue);
	
	$actualValue = $birdEye->validate("");
	$birdEyeTest->verify(false,$actualValue);
	
	$actualValue = $birdEye->validate(null);
	$birdEyeTest->verify(false,$actualValue);
		
	//TEST CASES FOR CHECKOUT MANAGER
	$checkoutTest = new TestCase();
	$checkout = new CheckoutManager();
	
	$actualValue = $checkout->validate("a");
	$checkoutTest->verify(false,$actualValue);
	
	$actualValue = $checkout->validate(null);
	$checkoutTest->verify(false,$actualValue);
	
	$actualValue = $checkout->validate("");
	$checkoutTest->verify(false,$actualValue);
	
	//TEST CASES FOR EDIT APPLIANCE MANAGER
	$editApplianceTest = new TestCase();
	$editAppliance = new EditApplianceManager();
	
	$actualValue = $editAppliance->validate("a","a","a");
	$editApplianceTest->verify(false,$actualValue);
	
	$actualValue = $editAppliance->validate(1,"a","a");
	$editApplianceTest->verify(false,$actualValue);
	
	$actualValue = $editAppliance->validate(1,1,"a");
	$editApplianceTest->verify(false,$actualValue);
	
	$actualValue = $editAppliance->validate(1,1,1);
	$editApplianceTest->verify(false,$actualValue);
	
	$actualValue = $editAppliance->validate("a",1,"a");
	$editApplianceTest->verify(false,$actualValue);
	
	$actualValue = $editAppliance->validate("a","a",1);
	$editApplianceTest->verify(false,$actualValue);
	
	$actualValue = $editAppliance->validate("","","");
	$editApplianceTest->verify(false,$actualValue);
	
	$actualValue = $editAppliance->validate(null,null,null);
	$editApplianceTest->verify(false,$actualValue);
	
	
	//TEST CASES FOR EDIT LOG MANAGER
	$editLogTest = new TestCase();
	$editLog = new EditLogManager();
	
	$actualValue = $editLog->validate(null,null);
	$editLogTest ->verify(false,$actualValue);
	
	$actualValue = $editLog->validate(null,"a");
	$editLogTest ->verify(false,$actualValue);
	
	$actualValue = $editLog->validate("a",null);
	$editLogTest ->verify(false,$actualValue);
	
	$actualValue = $editLog->validate("a","a");
	$editLogTest ->verify(false,$actualValue);
	
	$actualValue = $editLog->validate("a","");
	$editLogTest ->verify(false,$actualValue);
	
	$actualValue = $editLog->validate("",1);
	$editLogTest ->verify(false,$actualValue);
	
	$actualValue = $editLog->validate(1,1);
	$editLogTest ->verify(false,$actualValue);
	
	$actualValue = $editLog->validate(1,"");
	$editLogTest ->verify(false,$actualValue);
	
	$actualValue = $editLog->validate("","");
	$editLogTest ->verify(false,$actualValue);
		
	//TEST CASES FOR EDIT PAYMENT MANAGER
	$editPaymentTest = new TestCase();
	$editPayment = new EditPaymentManager();
	
	$actualValue = $editPayment->validate("a","a","a");
	$editPaymentTest->verify(false,$actualValue);
	
	$actualValue = $editPayment->validate(1,"a","a");
	$editPaymentTest->verify(false,$actualValue);
	
	$actualValue = $editPayment->validate(1,1,"a");
	$editPaymentTest->verify(false,$actualValue);
	
	$actualValue = $editPayment->validate(1,1,1);
	$editPaymentTest->verify(false,$actualValue);
	
	$actualValue = $editPayment->validate("a",1,"a");
	$editPaymentTest->verify(false,$actualValue);
	
	$actualValue = $editPayment->validate("a","a",1);
	$editPaymentTest->verify(false,$actualValue);
	
	$actualValue = $editPayment->validate("","","");
	$editPaymentTest->verify(false,$actualValue);
	
	$actualValue = $editPayment->validate(null,null,null);
	$editPaymentTest->verify(false,$actualValue);
	
	
	//TEST CASES FOR EDIT RESERVATION MANAGER
	$editReservationTest = new TestCase();
	$editReservation = new EditReservationManager();
	
	$actualValue = $editReservation->validate(null,null);
	$editReservationTest ->verify(false,$actualValue);
	
	$actualValue = $editReservation->validate(null,"a");
	$editReservationTest ->verify(false,$actualValue);
	
	$actualValue = $editReservation->validate("a",null);
	$editReservationTest ->verify(false,$actualValue);
	
	$actualValue = $editReservation->validate("a","a");
	$editReservationTest ->verify(false,$actualValue);
	
	$actualValue = $editReservation->validate("a","");
	$editReservationTest ->verify(false,$actualValue);
	
	$actualValue = $editReservation->validate("",1);
	$editReservationTest ->verify(false,$actualValue);
	
	$actualValue = $editReservation->validate(1,1);
	$editReservationTest ->verify(false,$actualValue);
	
	$actualValue = $editReservation->validate(1,"");
	$editReservationTest ->verify(false,$actualValue);
	
	$actualValue = $editReservation->validate("","");
	$editReservationTest ->verify(false,$actualValue);
	

	
	//TEST CASES FOR EDIT RESIDENT MANAGER
	$editResidentTest = new TestCase();
	$editResident = new EditResidentManager();
	
	$actualValue = $editResident->validate(null,null);
	$editResidentTest ->verify(false,$actualValue);
	
	$actualValue = $editResident->validate(null,"a");
	$editResidentTest ->verify(false,$actualValue);
	
	$actualValue = $editResident->validate("a",null);
	$editResidentTest ->verify(false,$actualValue);
	
	$actualValue = $editResident->validate("a","a");
	$editResidentTest ->verify(false,$actualValue);
	
	$actualValue = $editResident->validate("a","");
	$editResidentTest ->verify(false,$actualValue);
	
	$actualValue = $editResident->validate("",1);
	$editResidentTest ->verify(false,$actualValue);
	
	$actualValue = $editResident->validate(1,1);
	$editResidentTest ->verify(false,$actualValue);
	
	$actualValue = $editResident->validate(1,"");
	$editResidentTest ->verify(false,$actualValue);
	
	$actualValue = $editResident->validate("","");
	$editResidentTest ->verify(false,$actualValue);

	
	//TEST CASES FOR EDIT VIOLATION MANAGER
	$editViolationTest = new TestCase();
	$editViolation = new EditViolationManager();
	
	$actualValue = $editViolation->validate("a","a","a");
	$editViolationTest->verify(false,$actualValue);
	
	$actualValue = $editViolation->validate(1,"a","a");
	$editViolationTest->verify(false,$actualValue);
	
	$actualValue = $editViolation->validate(1,1,"a");
	$editViolationTest->verify(false,$actualValue);
	
	$actualValue = $editViolation->validate(1,1,1);
	$editViolationTest->verify(false,$actualValue);
	
	$actualValue = $editViolation->validate("a",1,"a");
	$editViolationTest->verify(false,$actualValue);
	
	$actualValue = $editViolation->validate("a","a",1);
	$editViolationTest->verify(false,$actualValue);
	
	$actualValue = $editViolation->validate("","","");
	$editViolationTest->verify(false,$actualValue);
	
	$actualValue = $editViolation->validate(null,null,null);
	$editViolationTest->verify(false,$actualValue);
	

	
	//TEST CASES FOR KEY DEPOSIT MANAGER
	$keyDepositTest = new TestCase();
	$keyDeposit = new KeyDepositManager();
	
	$actualValue = $keyDeposit->validate("","","","","","","");
	$keyDepositTest->verify(false,$actualValue);
	
	$actualValue = $keyDeposit->validate(null,null,null,null,null,null,null);
	$keyDepositTest->verify(false,$actualValue);
	
	$actualValue = $keyDeposit->validate("a",null,null,null,null,null,null);
	$keyDepositTest->verify(false,$actualValue);
	
	$actualValue = $keyDeposit->validate("a","","","","","","");
	$keyDepositTest->verify(false,$actualValue);
	
	//TEST CASES FOR LOG MANAGER
	$logTest = new TestCase();
	$log = new LogManager();
	
	$actualValue = $log->validate("a","a","a","a");
	$logTest->verify(false,$actualValue);
	
	$actualValue = $log->validate("","a","a","a");
	$logTest->verify(false,$actualValue);
	
	$actualValue = $log->validate(null,"a","a","a");
	$logTest->verify(false,$actualValue);
	
	$actualValue = $log->validate("","","","");
	$logTest->verify(false,$actualValue);
	
	$actualValue = $log->validate(null,null,null,null);
	$logTest->verify(false,$actualValue);

	
	//TEST CASES FOR PAYMENT MANAGER
	$paymentTest = new TestCase();
	$payment = new PaymentManager();

	$actualValue = $payment->validate("","","","","","","","","","");
	$paymentTest->verify(false,$actualValue);
	
	$actualValue = $payment->validate("a","","","a","a","","","","","");
	$paymentTest->verify(false,$actualValue);
	
	$actualValue = $payment->validate(null,null,null,null,null,null,null,null,null,null);
	$paymentTest->verify(false,$actualValue);
	
	$actualValue = $payment->validate(1,null,null,1,1,null,null,null,null,null);
	$paymentTest->verify(false,$actualValue);
	
	//TEST CASES FOR RESERVATION MANAGER
	$reservationTest = new TestCase();
	$reservation = new ReservationManager();

	$actualValue = $reservation->validate("","","","","","");
	$reservationTest->verify(false,$actualValue);
	
	$actualValue = $reservation->validate("a","a","a","a","a","a");
	$reservationTest->verify(false,$actualValue);
	
	$actualValue = $reservation->validate(1,"",1,"",1,"");
	$reservationTest->verify(false,$actualValue);
	
	$actualValue = $reservation->validate(null,"a",null,"a",null,"a");
	$reservationTest->verify(false,$actualValue);
	
	$actualValue = $reservation->validate("","a","","a","","a");
	$reservationTest->verify(false,$actualValue);
	

	
	//TEST CASES FOR RESIDENT MANAGER
	$residentTest = new TestCase();
	$resident = new ResidentManager();

	$actualvalue = $resident->validate("","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","");
	$residentTest->verify(false,$actualValue);
	
	$actualvalue = $resident->validate("a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a");
	$residentTest->verify(false,$actualValue);
	
	$actualvalue = $resident->validate(null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
	$residentTest->verify(false,$actualValue);
	
	
	//TEST CASES FOR SEARCH MANAGER
	$searchTest = new TestCase();
	$search = new SearchManager();
	
	$actualvalue = $search->validate("","","","");
	$searchTest->verify(false,$actualValue);
	
	$actualvalue = $search->validate(null,null,null,null);
	$searchTest->verify(false,$actualValue);
	
	$actualvalue = $search->validate(1,1,1,1);
	$searchTest->verify(false,$actualValue);
	

	
	//TEST CASES FOR UNPAID MANAGER
	$unpaidTest = new TestCase();
	$unpaid = new UnpaidManager();
	
	$actualValue = $unpaid->validate(1);
	$unpaidTest->verify(false,$actualValue);
	
	$actualValue = $unpaid->validate("");
	$unpaidTest->verify(false,$actualValue);
	
	$actualValue = $unpaid->validate(null);
	$unpaidTest->verify(false,$actualValue);
	

		
	//TEST CASES FOR UPDATE MANAGER
	$updateTest = new TestCase();
	$update = new UpdateManager();
	
	$actualvalue = $update->validate("","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","");
	$updateTest->verify(false,$actualValue);
	
	$actualvalue = $update->validate("a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a");
	$updateTest->verify(false,$actualValue);
	
	$actualvalue = $update->validate(null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
	$updateTest->verify(false,$actualValue);
	
	
	//TEST CASES FOR VIOLATION MANAGER
	$violationTest = new TestCase();
	$violation = new ViolationManager();
	
	$actualValue = $violation->validate(null,null,null,null,null);
	$violationTest->verify(false,$actualValue);
	
	$actualValue = $violation->validate("","","","","");
	$violationTest->verify(false,$actualValue);
	

?>




